package cn.com.xf.service;

import java.text.ParseException;
import java.util.List;

import cn.com.xf.domain.TblCheckLeave;
import cn.com.xf.web.form.LeaveForm;

public interface LeaveService {

	int insertLeave(TblCheckLeave leave);	
	
	List<TblCheckLeave> selectLeave(int begin, int pageSize,String year_month, String userid, String siteid, String deptid);
	
	int selectLeaveCount(String year_month,String userid, String siteid, String deptid);
	
	List<TblCheckLeave> selectPersonLeave(int begin, int pageSize,String year_month, String userid, String siteid, String deptid);
	
	int selectPersonLeaveCount(String year_month,String userid, String siteid, String deptid);
	
	int deleteLeave(Long id);
	
	TblCheckLeave selectLeaveById(Long id);
	
	int updateLeave(TblCheckLeave leave);
	
	int updateUserleave(TblCheckLeave leave);
	
	List<TblCheckLeave> selectExport(String year_Month, String siteid, String deptid,String userid);
}
